package cn.ycms.utils;


import java.beans.PropertyEditorSupport;
import java.text.SimpleDateFormat;




public class DatePropertyEditor  extends PropertyEditorSupport{
	 public void setAsText(String text) throws IllegalArgumentException {
		  
		  SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
		  try {
			  System.out.println("flsdjlf");
		   this.setValue(format.parse(text));
		  } catch (Exception e) {
		   e.printStackTrace();
		  }
		  }
		}






